<div class="register-form">
        <ul class="breadcrumb">
            <li><a href="<?=Yii::app()->createUrl('site/index')?>"><i class="fa fa-home"></i> 首页</a></li>
            <li class="active"><a href=""><i class="fa fa-user"></i> 学生注册</a></li>
        </ul>
    <form action="" method="post" class="form-horizontal" data-password="true">
        <div class="form-group">
            <label for="username" class="col-md-2 control-label">账号</label>
            <div class="col-md-4">
                <input type="text" name="username" id="username" class="form-control" required="" autofocus="" placeholder="请输入账号" maxlength="20">
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-md-2 control-label">密码</label>
            <div class="col-md-4">
                <input type="password" name="password" id="password" class="form-control" required="" placeholder="请输入密码">
            </div>
        </div>
        <div class="form-group">
            <label for="repassword" class="col-md-2 control-label">确认密码</label>
            <div class="col-md-4">
                <input type="password" name="repassword" id="repassword" class="form-control" required="" placeholder="请再次输入密码">
            </div>
        </div>
        <div class="form-group">
            <label for="name" class="col-md-2 control-label">姓名</label>
            <div class="col-md-4">
                <input type="text" name="name" id="name" class="form-control" required="" placeholder="请输入真实姓名" maxlength="20">
                <div class="help-block">请使用真实姓名进行注册，否则管理员将禁用你的账号</div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-5 col-md-offset-1">
                <button type="submit" class="btn btn-primary btn-block">注册</button>
            </div>
        </div>
    </form>
</div>

<script src="/public/js/main.js"></script>
<script>
    $(function(){
       initPassword();
    });
</script>